package cn.getech.data.development.mapper.flink;

import cn.getech.data.development.controller.real.RealSearchReq;
import cn.getech.data.development.controller.real.RealTimeTaskHistory;
import cn.getech.data.development.entity.flink.BdpRealTimeRunHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BdpRealTimeRunHistoryMapper extends BaseMapper<BdpRealTimeRunHistory> {
    int insertOrUpdateSelective(BdpRealTimeRunHistory record);

    IPage<RealTimeTaskHistory> selectListPage(IPage<RealTimeTaskHistory> dataPage,
                                              @Param("params") RealSearchReq params);

    List<RealTimeTaskHistory> findProjectList(@Param("tenantId") Integer tenantId);
}